package com.unittec.zk.sdk.exam.domain;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 试卷考题请求类
 * </p>
 *
 * @author 聪明笨狗
 * @since 2020-05-25 17:31
 */
@Data
@ApiModel(value="试卷考题", description="试卷考题")
public class PaperQuDTO implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "ID", required=true)
    private String id;

    @ApiModelProperty(value = "试卷ID", required=true)
    private String paperId;

    @ApiModelProperty(value = "题目ID", required=true)
    private String quId;

    @ApiModelProperty(value = "题目类型", required=true)
    private Integer quType;

    @ApiModelProperty(value = "是否已答", required=true)
    private Byte answered;

    @ApiModelProperty(value = "主观答案", required=true)
    private String answer;

    @ApiModelProperty(value = "问题排序", required=true)
    private Integer sort;

    @ApiModelProperty(value = "单题分分值", required=true)
    private Integer score;

    @ApiModelProperty(value = "实际得分(主观题)", required=true)
    private Integer actualScore;

    @ApiModelProperty(value = "是否答对", required=true)
    private Byte isRight;

    /**
     * 应用id
     */
    @TableField(value = "app_id", fill = FieldFill.DEFAULT)
    private String appId;

    /**
     * 租户id
     */
    @TableField(value = "tenant_id", fill = FieldFill.DEFAULT)
    private String tenantId;

    /**
     * 创建者
     */
    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private String createUser;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 修改者
     */
    @TableField(value = "modify_user", fill = FieldFill.UPDATE)
    private String modifyUser;

    /**
     * 修改时间
     */
    @TableField(value = "modify_time", fill = FieldFill.UPDATE)
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modifyTime;

}
